package com.hfut.wxy.entity.mysql;

import com.hfut.wxy.common.parent.WxyBase;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Setter
@Getter
@Entity
@Table(name = "wxyException")
@DynamicInsert
@DynamicUpdate
public class WxyOrderException extends WxyBase {
    @Column(columnDefinition = "varchar(255) comment '订单异常描述' ")
    private String description;

    @Column(columnDefinition = "int comment 'orderId' ")
    private Integer orderId;

    @Column(columnDefinition = "int(1) comment '异常类型' ")
    //1 订单撤销 2 订单纠纷
    private Integer type;

    @Column(columnDefinition = "int comment '发起者id'")
    private Integer userId;

    @Column(columnDefinition = "bit(1) comment '是否是订单创建人'")
    private boolean isOrderCreator;

}
